<table width="100%" cellpadding="3" cellspacing="1">
{if $goods_list}
  <tr>
    <td scope="col"><div align="center"><strong>{$lang.goods_name}</strong></div></td>
    <td scope="col"><div align="center"><strong>{$lang.goods_sn}</strong></div></td>
    <td scope="col"><div align="center"><strong>{$lang.goods_model}</strong></div></td>
	<td scope="col"><div align="center"><strong>{$lang.goods_img}</strong></div></td>
    <td scope="col"><div align="center"><strong>{$lang.goods_count}</strong></div></td>
    <td scope="col"><div align="center"><strong>{$lang.goods_price}</strong></div></td>
	<td scope="col"><div align="center"><strong>{$lang.goods2_price}</strong></div></td>
    <td scope="col"><div align="center"><strong>{$lang.subtotal}</strong></div></td>
  </tr>
  {foreach from=$goods_list item=goods}
  <tr>
    {if $goods.goods_id gt 0 && $goods.extension_code neq 'package_buy'}
    <td align="center"><a href="../goods.php?id={$goods.goods_id}" target="_blank">{$goods.goods_name} {if $goods.brand_name}[ {$goods.brand_name} ]{/if}
    {if $goods.is_gift}{if $goods.goods_price > 0}{$lang.remark_favourable}{else}{$lang.remark_gift}{/if}{/if}
    {if $goods.parent_id > 0}{$lang.remark_fittings}{/if}</a></td>
    {else}
    <td align="center">{$goods.goods_name}{$lang.remark_package}</td>
    {/if}
    <td><div align="center">{$goods.goods_sn}</div></td>
	<td><div align="center">{$goods.goods_model}</div></td>
	<td><div align="center">{if $goods.flag eq 2}{$lang.goods2_flag2}{elseif $goods.flag eq 1}{$lang.goods2_flag}{else}<img src="{$goods.goods2_thumb}"/>{/if}</div></td>
	<td><div align="center">{$goods.goods_count}</div></td>
	<td><div align="center">{$goods.formated_goods_price}</div></td>
    <td><div align="center">{$goods.formated_img_price2}</div></td>
    <td><div align="right">{$goods.formated_subtotal}</div></td>
  </tr>
  {/foreach}
  {/if}

{if $gift_goods_list}
  <tr>
    <td scope="col"><div align="center"><strong>{$lang.gift_goods_name}</strong></div></td>
    <td scope="col"><div align="center"><strong>{$lang.goods_sn}</strong></div></td>
    <td colspan="2" scope="col"><div align="center"><strong>{$lang.gift_goods_attr}</strong></div></td>
    <td scope="col"><div align="center"><strong>{$lang.goods_count}</strong></div></td>
    <td scope="col"><div align="center"><strong>{$lang.goods_price}</strong></div></td>
	<td scope="col"><div align="center"><strong>{$lang.gift_goods_model_price}</strong></div></td>
    <td scope="col"><div align="center"><strong>{$lang.subtotal}</strong></div></td>
  </tr>
  {foreach from=$gift_goods_list item=goods}
  <tr>
    <td><div align="center"><a href="../gift_goods.php?id={$goods.goods_id}" target="_blank">{$goods.goods_name}</div></td>
    <td><div align="center">{$goods.goods_sn}</div></td>
	<td colspan="2"><div align="center">{$goods.goods_model}<br/>{$goods.goods_attr}</div></td>
	<td><div align="center">{$goods.goods_count}</div></td>
	<td><div align="center">{$goods.formated_goods_price}</div></td>
    <td><div align="center">{$goods.formated_img_price2}</div></td>
    <td><div align="right">{$goods.formated_subtotal}</div></td>
  </tr>
  {/foreach}
{/if}
</table>

